<!DOCTYPE html>
<html>

	<head>
		<title>{$site_name}</title>
		<meta name="keywords" content="{$site_seo_keywords}" />
		<meta name="description" content="{$site_seo_description}">
		<meta name="author" content="ThinkCMF">
		<script src="__TMPL__Public/js/touxiang/uploadPreview.js" type="text/javascript"></script>
		<script>
			window.onload = function() {
				new uploadPreview({
					UpBtn: "up_img",
					DivShow: "imgdiv",
					ImgShow: "imgShow"
				});
			}
		</script>
		<tc_include file="Public:head" />

	</head>

	<body class="body-white" id="top">
		<tc_include file="Public:nav" />

		<div class="container tc-main">
			<div class="row">
				<div class="span3">
					<tc_include file="Public:usernav" />
				</div>
				<div class="span9">
					<div class="tabs">
						<ul class="nav nav-tabs">
							<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-user"></i> 修改头像</a></li>
						</ul>
						<div class="tab-content">
							<div class="tab-pane active" id="one">
								<if condition="empty($avatar)">
									<img src="__TMPL__/Public/images/wutouxiang.jpg" class="headicon" />
									<else/>
									<img src="{:sp_get_user_avatar_url($avatar)}?t={:time()}" class="headicon" />
								</if>
								<div id="imgdiv" style="padding-top: 30px;"><img id="imgShow" width="120" height="120" /></div>
								<form class="form-horizontal js-ajax-form" action="{:U('profile/touxiang_upload')}" method="post" enctype="multipart/form-data"
>
									<input type="file" id="up_img" style="margin-top: 12px;" name="file"/>
									<div class="uploaded_avatar_btns">
										<input type="submit" name="bth" id="i_bth" value="确定" />

									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>

		

		</div>
		<!-- /container -->
	<tc_include file="Public:footer" />
	</body>

</html>